Position is related to Middle. 
Test is related to Barrier. Curtain is a type of Barrier. Curtain is related to Window. 
Position <--RelatedTo--> Middle 
Test <--RelatedTo--> Barrier <--IsA-- Curtain <--RelatedTo--> Window 