Exercise 5c - Relations and Functions