Create util.cpp

utility implementation