add cross_validate and examples