Added read, write, and writeln statements. Just need to finish function parameters.