added a check method as a comment in Position class