add examples for classes and solution to an exercise