chapter 5, q2: prototype