Refactored client.rb in stock_exchange_lab