Zopt class added for random geometry generation