Implementing adapter pattern