converting to sinatra app