introduced functions to enter input, output, and local variables