Edited file with solution to Programming Assignment 2