How functions related to relations?