Added dictionary population and Contains() implementations.