adding simple and advanced example