Modified Stock.rb