add Example class

add Example class and Test case.