Added code for Adapter Pattern