finished chapter 6 added third dimension