answers for exercise01-06, and 01-07