Executable examples for genetics