add example and corresponding test