Define func main