Add last n elements example

@haraldschilly, thanks for the tip for this example.