Doing some work on arrays and hashes