Defining the Animation Class