testclasses and util.cpp implemented