solution to Sinatra ideabox tutorial