Added adapter class and demo.