Put boilerplate code into easing base class
Style and logic error.