Move code to Lexicon.jl