Indices extend gains from previous week