update classes and example