Functions can be arguments.
starburst draws a burst with any shape at each end.
starburst 5, 50, dot draws a default black
dot at each end. Can you change the program to draw a
reddot at each end?
Instead of drawing a dot at each end, try creating a function that draws some other shape at each end of the starburst. Can you draw a smaller starburst at each end of the big starburst?