Added method to mark todo items as completed