sinatra app file reformatted to oberate with Base classes