add function to call program

define function named “main”