adding class demo code