Added some relationship code
Added some relationship code