exercise code chapter 03