Ruby Class that parses xml file and prints statistics