A demonstration of a genetic algorithm