changing from named tuples to class (Configuration)