first draft of dictionary implementation