fixing pset 2 code