almost got adding to array from file working