Thank you, If I understand correctly, newData should be only passed into the channel and not used anywhere else, since it is a pointer. So in such approach the pointer has to be used exculsively through the channel to avoid a race condition.Also, I have fixed the typos