Programming Assignment 2

My implementation