basic build entity class