The Simple DOM Model example shows how an existing class can be adapted for use with the model/view framework.