Solutions to week 3's exercises.