Refactored StockToAnalyze.rb