Moved ruby logic to server.rb file