Programming Assignment 2

solution for programming assignment 2