create sprout program function