Implemented Solution

Implemented solution to programming assignment