adding the function addRelation as well as a (very basic) test for the function