add with_default method on hash