import java.util.*;

class Model extends Observable {
    protected int x=0, y=0, z=0;
    //Observable ob;

    Model(int x, int y, int z) {
	this.x = x;
	this.y = y;
	this.z = z;
	//ob = new Observable();
    }

    Model() {
	//ob = new Observable();
    }

/*    void addObserver(Observer view) {
	System.out.println("Add Obserber: " + view);
	ob.addObserver(view);
    } */

    void setX(int x) {
	this.x = x;
	System.out.println("C Chenging to: " + x);
	//ob.notifyObservers(this);
	setChanged();
	//notifyObservers(this);
    }

    void setY(int y) {
	this.y = y;
	//ob.notifyObservers(this);
	setChanged();
	//notifyObservers(this);
    }

    void setZ(int z) {
	this.z = z;
	//ob.notifyObservers(this);
	setChanged();
	//notifyObservers(this);
    }

    int getX() {
	return x;
    }

    int getY() {
	return y;
    }

    int getZ() {
	return z;
    }
}
