Program is related to Soap. Soap is related to Cheese. Cheese is related to Cottage. 
Pain is related to Extreme. Extreme is a synonym of Final. Final is the opposite of Preliminary. 
Program <--RelatedTo--> Soap <--RelatedTo--> Cheese <--RelatedTo--> Cottage 
Pain <--RelatedTo--> Extreme <--Synonym--> Final <--Antonym--> Preliminary 