Adding a defaults method to hash.