add in exmaple helper functions from example code.