Animated sprite class is written