Course 2 Week 3 EX6

Maybe reading this would help.

PS: Please move your thread to the relevant course category as described here.