added Tools class with helper methods