first try with genetic algorithm