.
.
output function
make more use of helper function in Example2
Example3