add ex2.21, ex2.22, ex2.23