Added solution for ex06_Solved Exercises 38-39 from chapter 6