refactoring UtilityMethods class. Using categories instead