Implemented an Entity builder and factory.