Implement Q5.
Answer Q5.{1,2,3}.