Setter method for timeline

First part of the code in this post would be interesting for you.