Homework for session 5 plus session 3 and 4 stuff