code samples of a sinatra app