added function.h file