Practicing chapter 7 example