Added homework 2 spec.
Completed exercise 2.