Second part of bloc sinatra blog exercise