moved drawing of graphs to super class