break the main function into classes and functions