How does Sinatra work