Realize basic Element class. Realize addElement in canvas.