Adding snippet on nested hashing