add simple example script for beta func