Added ModelEntity class.