Homework for https://www.coursera.org/course/compinvesting1