Project problem 2c solution

Finished problem 2.