add a snippet for main function with package definition