refactored server.rb and added folder of controllers