Added static class with function for distance