a gate is used for allowing something in or out.