Working on chapter 9 code from book. Designing minimal algebra