solution for week3