added code that gets me closer to being able to simulate a cashflow and a purchase