creating class 'RelationFunctions'