solutions for Chapter 04 : Question 06