Completed small exercises.

As it's just an very small exercise, javadoc will not be included.