Added Util class and some methodes with tests