Solution for a task from parallel processing classes.