function Position( X, Y )
{
                         
    var posX = X;
    var posY = Y;
    
    this.X = function ()
             {
                return posX;
             }
             
    this.Y = function ()
             {
                return posY;
             }
             
    this.less     = function ( other )
                    {
                        if ( Y < other.Y() )
                            return true;
                        if (( Y == other.Y() )&&( X < other.X() ))
                            return true;
                        return false;
                    }
             
    this.equals   = function ( other )
                    {
                        if (( X != other.X() )||( Y != other.Y() ))
                            return false;
                        return true;
                    }
 
}
