fixing parts of sinatra example