The solution for the Programming Assignment 2