“The problem is not the problem. The problem is your attitude about the problem. Do you understand?” – Jack Sparrow
This code prints the name of the current captain of the ship (now, it is Hector's name).
However, the crew elected a new captain, and now it's Jack Sparrow.
Fix the declaration of the captain variable, create a new Pirate object with Jack Sparrow's name, assign a new value to the variable captain, and print the name of the current captain again.