public static void work(ConsoleInput input, ConsoleOutput output, string[] names, int[] ages) { names = input.GetValuesOfNamesFromUserByKeyboard(names); ages = input.GetValuesOfAgesFromUserByKeyboard(ages); output.Output(names, ages, _incrementForAge); }