added class for paint curves
exam code