Splitted index.rb to setup.rb and work.rb