Computational investing, part I: added missing Homework 2