added function of adding new task.