Create a Sample Adapter

This example illustrates how to create a sample adapter.