Create gate.class.php