add example and output capture