Refactored symbols.py: functions moved to a class.