a example main func