Chapter 15: move code out of __name__ == __main__