First version of plotting