Homework for https://class.coursera.org/compinvesting1-003