Adapter class