first commit of the plot mask object orientated script