Here the 12F509 Knight Rider.. it contains 12 leds, while the 509 only has 5 output pins..
The code varies the speed quite slowly and after a while turns the PIC to Sleep to save battery power.