Stanford CS391p Homework 1 Solution