Solutions for week 5