public async Task <Chromosome <ScheduledClass> > CreateChromosomeAsync() { var scheduledClasses = await scheduleManager.GenerateAsync(); var fitness = CalculateFitness(scheduledClasses); return(new Chromosome <ScheduledClass>(scheduledClasses, fitness)); }