Pirate language translator with passing tests