adding adapter pattern example