Adding example from chapter 3