making sinatra app a bit modular