Completing the code