CHANGED:applied the createTask with newTask object paramter