
public class ThermoModel {

  private int temp = 22;

  public void setTemp (int temp) {
    this.temp = temp;
  }

  public void addTemp (int diff) {
    temp = temp + diff;
  }

  public int getTemp() {
    return temp;
  }
}

