add examples for main function