solutions to week 5