Add gems to gemfile
Write config.ru
Change class