Added a sample implementation of the exercises.