Create complete function

Create complete function. Tested OK with sample output from assignment
page.