AOS1 Topic 3: Relations and functions