a model of a small bridge with two gates