Main should be contained in a separate main function and called here. Please see other examples.