cleaned up code and added return_stock_from_active_memory(ticker)