add Chapter21 code in Go