Added the relate and getRelation methods