add new example files and update class

add new example files and update class