implement class Position