15.13. Code for chapter 10, shape reference