Baby is related to Cord. Cord is a type of Line. 
Shoe is part of Clothing. Clothing is related to Hang. Hang is related to Arrangement. Arrangement is related to Bed. 
Baby <--RelatedTo--> Cord --IsA--> Line 
Shoe --PartOf--> Clothing <--RelatedTo--> Hang <--RelatedTo--> Arrangement <--RelatedTo--> Bed 