Changing new static() to new self()