Add example for bagging