Solutions for week 3