The invention provides novel compounds having the general formula (I) wherein R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, A1, A2 A3 and n are as described herein, compositions including the compounds and methods of using the compounds. The compounds of the present invention are useful as inhibitors of aldosterone synthase. The compounds may be used, for example, in the treatment or prophylaxis of chronic kidney disease, congestive heart failure, hypertension, primary aldosteronism and Cushing syndrome.