Add animation class and it's tests