version uing an array of anonymous goroutines