Shelter is related to Stable. 
Cure is the opposite of Disease. Disease is related to Bad. Bad is the opposite of Prime. Prime is a synonym of Main. 
Shelter <--RelatedTo--> Stable 
Cure <--Antonym--> Disease <--RelatedTo--> Bad <--Antonym--> Prime <--Synonym--> Main 