example 2-4
example 2-5: refactor to use 'import'