Adaptive control of a class of time-varying and nonlinear plants