next method and class