Final version of Programming Assignment 2 done