Z3: attempt at 1b