Define goroutines communicating via channel