Solutions to problem sets 1 and 2.