Dough is related to Substance. Chemistry is a type of Substance. 
one thing you do when you Writing is Initial. Writing is related to Code. 
Dough <--RelatedTo--> Substance <--IsA-- Chemistry 
Initial <--HasSubevent-- Writing <--RelatedTo--> Code 