Added solution for week4 task6-9