add_star function examples in main.c