create class Pos
implement Pos.java