Give main() functions to Chapter 17 scripts