Solutions for first set of exercises in Chapter 3.