Using hashes to get more data from array