Code from blog post: http://matt.weppler.me/2013/07/19/lets-build-a-sinatra-app.html