finished ruby exercises: arrays and hashes