Functions, Variables, and Dialog-based I/O