synched my code with one from teamtreehouse.com