Programming assignment 2

Solution for programming assignment 2