1st sinatra-based working version