Completed problem 1 of week 4 programming assignments.