Here are two sample apps where components are kept in dictionaries that assign them names for storage: