code from the book "jump start sinatra"