add example and other codes