// A malicious main showing the danger of public fields
public class StockMain {
	public static void main(String[] args) {
		Stock s1 = new Stock("MSFT");
		s1.purchase(2, 12.50);
		s1.purchase(3, 98);
		s1.sharesOwned = -2000;  // OH NO!!!
		System.out.println(s1);
		System.out.println("Profit from MSFT: " + s1.getProfit(30.95));
 
 		System.out.println();
        
		Stock s2 = new Stock("GOOG");
		s2.purchase(3, 550.00);
		s2.purchase(5, 340.00);
		System.out.println(s2);
		System.out.println("Profit from GOOG: " + s2.getProfit(626.75));

	}
}
