added var when instaniating $this (line 18)