Assignment2

My code for programming assignment 2.