Added several entities and some business logic.