Renamed $templates property to $_templates
Applied self::$_this instead of $this