added Adapter class