Class creation for timeline