Rewrote the Dictionary class