Gate : simple example