minor change $this->data=$data to $this->data = $data