trying to get the entire recommendation logic out of main.rb into its own class