partition composition method added to the task class