write firebase sinatra sample code.