Moving info from an array to a hash