Solutions to pset1 and pset2