I need to add some functionalities to the Timeline class, but it is not clear to me how to extend the class, since its instances are created through two methods (createTimeline and timeline) and not through a regular constructor.
Is there a clean way to extend the class?