Using classes as adapters