took methods out of executable file, created program class and controller, created formatter module