Completing the function
Minor: remove extra spaces