implementation of machine translation