consolidating code into the example code repo