This is an example of how to model populations involving recombination and mutation. The Hardy-Weinberg Law gives us the effects of recombination, and mutation is represented by a flux between alleles.
Possible extensions: Build in differential fitness of the three genotypes, have them differentially interact with an external environment, or have them interact with each other. (There is already an interaction term in the three 'die' flows.)