part 1 of stanford homework 1