complete solution for week 7