separated visualisation into data program class