Corrected typo: $this-dimensions  ==>  $this->dimensions