Added ex3.21 and ex3.22 solutions