Changed method in getPrice in StockPrice