Move declaration of $this->category to constructor