Add example and implement more function