converting to a sinatra app, phase 1