public class Cake {
    private int mWidth;
    private int mHeight;

    public Cake(int w, int h) {
        mWidth = w;
        mHeight = h;
    }

    public int getArea() {
        return mWidth * mHeight;
    }

    public double getCost() {
        return mWidth * mHeight * 1.5;
    }
}
