added tests. completed Chapter 11