add cohort analysis. #close 268
fixed rspec error.
merge.