Initial code for the entity model.