turned this into a web app using sinatra