added additional solutions for arrays and hashes