finished Chap12