create a task and get all tasks