first half of pset3