Programming Motor shield and 3 LEDs and a push button

In fact, we are novice, n we took this program on the web, n Can u help me for that?? I want just a example, Thanks