Exercise 20. Functions and Files.