sixth pset, first attempt