Burn is related to Flame. Flame is related to Candle. 
Class is related to Room. you are likely to find Shelf in/at/on Room. you are likely to find Hat in/at/on Shelf. 
Burn <--RelatedTo--> Flame <--RelatedTo--> Candle 
Class <--RelatedTo--> Room <--AtLocation-- Shelf <--AtLocation-- Hat 