Added cross validation method