Created a new class for drawing graphics on a canvas. Tried to merge this with previous code but faced problems I need help to solve.
new try on the canvas