class a return type of function