Added two methods to Position.java