Added script for chapter 16 functions