exercise with moving around and calculating distances between points
working with an integer class