Completed assignment

Programming assignment 2 completed and working.
typo

correct typo