A simple example using a delegate system of how to create genetic algorithms