working implementation of dictionary and a preliminary translate