Mechanism of action of ampicillin is: