completed first subsection of chapter 7
fixed makefile