Jail is related to Prisoner. Prisoner is related to Man. Man is related to Grandfather. Grandfather is a type of Ancestor. 
Purpose is related to Education. Extension is a type of Education. Extension is a synonym of Reference. 
Jail <--RelatedTo--> Prisoner <--RelatedTo--> Man <--RelatedTo--> Grandfather --IsA--> Ancestor 
Purpose <--RelatedTo--> Education <--IsA-- Extension <--Synonym--> Reference 