The program script must define a public class that extends the Script class public class bounce2 extends Script { . . . }
public class bounce2 extends Script { . . . }