working version of chap8class and newclass