Carboxylic acid compounds and derivatives