chapter 2 relations and functions