Added an example use of the entity manager.