removed more of the example code