Homework 7 for Computation Investment - Coursera