added some code to create TaskList