Add an AnimatedObject class