Code structure with cross-validation stub introduced