solutions for handout 5 783231