CHANGED:applied the cross_validation and mean functions;