added MaxF class