Problem Set 2

Here is the code for Problem Set 2. Enjoy!