Building can be used for Shelter. Shelter is a type of Supply. Supply is related to Storage. Shelf can be used for Storage. 
one thing you do when you Pray is Wonder. 
Building --UsedFor--> Shelter --IsA--> Supply <--RelatedTo--> Storage <--UsedFor-- Shelf 
Wonder <--HasSubevent-- Pray 