add print example for the main function