removing business logic from menu.rb