Ch 3. Sec 4. Implementing functions