Code from following the book Sinatra: Up and Running Ruby for the Web, Simply By Alan Harris, Konstantin Haase