Create ex2

Chapter 5,exercise 2