How to create and manage multiple tasks