I added three lines in StockPurchase.java.