public class Home {

    private String address;
    private int gramsOfGruel; // Note to students: int instance variables
                              // are automatically initialised to 0

    // Constructs a Home with address `ad' and 0 grams of gruel
    // in the fridge
    public Home(String ad) {
        address = ad;
    }

    // Returns this Home's address
    public String getAddress() {
        return address;
    }

    // Adds `grams' to the amount of gruel in this Home's fridge.
    // Doesn't prevent negative total amount of gruel.
    public void adjustGruelBy(int grams) {
        gramsOfGruel += grams;
    }

    // Returns the grams of gruel in this Home's fridge
    public int gruelInFridge() {
        return gramsOfGruel;
    }

}
