added class BaseEntity