Version with dictionary to demonstrate how to get values out