Whats the stylus for on a Nintendo DS?

For touching or writing on the touch screen.