my solution

i added one more line.