Add my solution to problem set 1.