week-9 problem-8 solved