solutions to week 3