The invention relates to compounds of formula I:or a pharmaceutically acceptable salt thereof, where R1-3, R5, R7, a, b, Q, X, X′, X″, Y, Z, and Ar are as defined in the specification. These compounds are muscarinic receptor antagonists. The invention also relates to pharmaceutical compositions containing such compounds, processes for preparing such compounds and methods of using such compounds to, for example, treat pulmonary disorders such as chronic obstructive pulmonary disease and asthma.