implement ch1/ex2 by lamda.
implement ch1/ex2 by method ref.