Why using class methods instead of regular classes?