structure in sinatra, best way