Refactored main into separate classes for examples, solving methods, and basic run code.