My working version of index.php at 3min 40sec into Chapter 14 (before Kevin goes over what he did).