Implementation of the test task