ch09exc03 return type for log method added