back end using sinatra