Chapter 2 Example 2 completed

Chapter 2 Example 2 created and tested to work correctly.