finished chapter 4 stuff
ch4 debugged. Remember to look at make files
a