Updated all the examples for class 2