main
 1class Stock
 2  attr_reader :name, :symbol, :price
 3
 4  def initialize(name, symbol, price)
 5    @name, @symbol, @price = name, symbol, price
 6  end
 7
 8  def to_s
 9    "#{symbol}: #{name} - #{price}"
10  end
11end