exercise 3-3: simple side effects