Added ex2.21, ex2.22, and ex2.23 solutions