Refactored Vocabulary class and removed unnecessary methods