C++ timeline help[4.17.2]

I was learning how to use code to use timelines based on this tutorial : link text
and i found a problem :

ScoreTimeline = ObjectInitializer.CreateDefaultSubobject<UTimelineComponent>(this, TEXT("TimelineScore"));

And i got an error on ObjectInitializer. I found out that things changed on 4.16 but i didn’t find anything about this.
I tried using FObjectInitializer but got the same error. It said it was a typename error i believe.