Exercise 5B - Relations and Functions