solution to the thirteenth homework from spring 2013 7244294