utility.h file for helper functions