name member variable and getter method in Entity class added