new package for chapter3 and some changes to chapter4/abstract classes