An alternative method of defining a discrete probability is to provide the actual sample space in a collection. For example, suppose a group of boys are observed to have heights represented by the array \#(60 54 606250 ). We can then ask for the height of a randomly selected boy. The following shows how a class SampleSpace might be used for this purpose:
sample $\leftarrow$ SampleSpace new ; define: \#(60 546062 50) sample first
60
Produce a class description for SampleSpace.