add word and definition classes. UI tested