add cohort analysis. #268

#268