gates example