Completed solving the exercises.