what is the difference between a relation and function?​