Undertake is a synonym of Contract. Contract is related to Treaty. Treaty is related to Diplomatic. Diplomatic is a type of Action. 
Grateful is similar to Pleasant. 
Undertake <--Synonym--> Contract <--RelatedTo--> Treaty <--RelatedTo--> Diplomatic --IsA--> Action 
Grateful <--SimilarTo--> Pleasant 