AnimationFrame class added