investments model + couple of tests (still missing a lot)