public class NewReleasePrice extends Price { static private final NewReleasePrice PRICE = new NewReleasePrice(); private NewReleasePrice() { } public static NewReleasePrice getInstance() { return PRICE; } public int getPriceCode() { return Movie.NEW_RELEASE; } public double getCharge(int daysRented) { return daysRented*3; } public int getFrequentRenterPoints(int daysRented) { return (daysRented > 1) ? 2 : 1; } }