Chapter 2 Sets and functions