Adapter design pattern added.

Adapter design pattern added. Test included.