ProgrammingAssignment2

Implemented the specs.