Added virtual destructor for Entity class