added getPrice(int pg)