chap9 added date class