reorganized code with dictionary package, dictionary struct with make (creator) and lookup methods