Simplified code in MyConsole