added an animation class