pset3 problem 3