Compounds of formula I in free or salt or solvate form, where Ar is a group of formula II where Y is carbon or nitrogen and R 1 , R 2 , R 3 , R 4 , R 5 , R 6 , R 7 , R 8 , R 9 , R 10 , X, n, p, q and r are as defined in the specification, their preparation and their use as pharmaceuticals, particularly for the treatment of obstructive or inflammatory airways diseases.