inherit Simple_drawing_class code