now getBinsFromFile is public and uses data member