Consider using a ``namedtuple`` object. Also this needs comments and docstrings-- what does this do?