write and compile second half of chapter 14