Heat the oven to 350°F/175°C and grease two baking sheets. Cream the butter, add the sugar and beat until soft and light. Beat in the vanilla extract. Stir the egg yolks into the mixture one by one, alternating with the flour. The dough should be soft but not sticky; if necessary stir in more flour. Press the dough into a ball and leave it in the bowl.