implements moveTo method and test