computational investment homework 1