put animation methods to new animation class