added profit calculations to demo class