CM.CP.7.a: Write and implement a user-defined function to complete a task or sub-task.