Disclosed are novel compounds of formula (I)
wherein A1, A2, Ar, R5, R6, R8,
M, Q, Y, Z, k, m and n are as defined in the specification. These compounds are
useful in the treatment and/or prevention of conditions mediated by nuclear receptors,
in particular the Peroxisome Proliferator-Activated Receptors (PPAR). Such conditions
include diabetes and obesity.