How we built the TrakInvest Smart contracts