Add example code and Remove unused code