restructure animation class, not ready yet