Programming Assignment 2

Implementation of week 2 programming assignment