class the new function