modify example
modify example for plotting
add reporting