added plotting example