created working sinatra app
modified app to make it sinatra compatible