Create maxentropy

Copy from my script