class keyword needed before friend