Complete first chapter 8 exercise