following a PHP tutorial from teamtreehouse