defining the timeline method