Add an adapter class