Adds first batch of chapter 7 code