Added the adapter class.