modified star.c and add parrot example