Changed the syntax of the animator class. Has to be tested and compiled