encapsulated the use of a dictionary as a named list