small example of adapter pattern