Added example code and test generator code