By specifying the reflection coefficient at each cavity mirror as an external function, we can couple cavities together. The reflection function can include an input field such as from an input beam or an attached cavity.