Sample code from "Reading from a Dictionary in Swift" blog post.