refactored quote class and pass app through initialization in config.ru