Created a PirateName class and used it to select an appellation from a list which is appended to to the name entered in the input field