Added constructor to the Relationship class