Done some chap. 6 exercises