Implementing DictModel (Model for dictionary-like structures)