Grabbed working tutorial code, modifying it for my purposes