use hashes instead of arrays to hold defined groups