added util.h, util.cpp