added practice codes from lecture (type inspection, selectors, and dictionary)