adding in example 2 for chapter 4