solution to the first homework from spring 2013 6909221