ruby exercises with arrays and hashes