Creating class Stock.