How to divide a task in several parts?