Adds new Animation class
Updates the animation code to make use of the new Animation class