A Java based genetic algorithm for my artificial intelligence course