Function D (Module 6.3)