PA2 test solution

Attempt at Programming Assignment 2