Removed use of globals in companies.rb