Create a new world and define a function

Display Figure 4.

Begin by creating a new world containing a coach and a chicken as shown in Figure 4.

Select coach in the object tree.

Open the functions tab below the object tree.

Click the button labeled create new function in the functions tab. 

Display Figure 5.

This will produce a dialog similar to that shown in Figure 5.

The type shown in Figure 5 is the type of data returned by the function.

Figure 5. Function creation dialog in program named Alice0135b.