Some unfinished code on bootstrapping confidence