add example plotting code