A bit of restructuring. Introduced a class called AnimatedTemplate and made all data structures extend it.