Programming assignment 2

Code solutions for programming assignment 2