Implementation of the second part of a test task.