Added header files for example code and example stat function