Using named tuples to collect data