Completed all exercises now.

I have implemented the functions for the exercises 21 to 28.