save functions  to other file, new class - diff_fun