created function to package information as a dict