Sumbit the final code for Programming Assignment 2