public static void Main() { var output = new StringBuilder(); var catalog = new Catalog(); var c = new CommandExecutor(); var commands = ParseCommands(); foreach (var command in commands) { c.ExecuteCommand(catalog, command, output); } Console.Write(output); }