Fixing typo
Refactoring: using a static function instead of a class