Solved Week 6 Programming Assignment