Adds code examples to models ED guide

#1064