add solution for my_hash_mod method with update method