integrated a custom method for marking tasks as completed