Added Friend class as a base class of User