Waitgroup re-implementattion using chans