Class editor and Function impl+tests