This would have problems if there are  < 4 entries, maybe you can pick the min(4, articles length)