Implement second function.

simple pull request..