completed bestPractices.js