An exponential observer and a controller for a class of nonlinear systems