copied files from a tutorial, since it was working and my follow-along code was not