public function __construct() { // Initialize $this->title = new Title(); $this->legend = new Legend(); $this->plotArea = new PlotArea(); $this->view3D = new View3D(); // Initialize parent parent::__construct(); }