final submit of Programming Assignment 2