Implemented a update method
Implemented a onInit callback method