did PaintPanel and Model as class