Added class SPainter