wrote dictionary, unit tests