added two classes UserEntity and BaseEntity