Added assignment operator to visitor and implemented some basic function of the Painter class