Please click below to see a simple applet program for the demonstration on how the inputs and outputs work for a better understanding.
Agrid Applet