Adapter

code-demontrates how to use adapter