Finished chap5 foundation, all tests work