Implemented Programming Assignment for Week 2