Extraction of Main-Method from UI class to TaskCommander class