Using hashes and arrays as arguments