added get method to words