Created and implemented PosLength class.