Simplify the languages in Problem 1 and 3 to avoid returning things from function definitions