You connected that twice. Remove that part and remove the following end.
end
It worked! Thank you so much for helping me!