Use namedtuple for structured objects