added sinatra code