fix some classes, add example project