Added method painFigure in class cells