added code in Chap3
first class
update test case of class