Beter implementation for 'Dictionary'