created main() function