added dynamic plotting example