1 00:00:00,570 --> 00:00:05,900 We were expecting esttay but instead, we just got test. 2 00:00:07,450 --> 00:00:10,130 Look at the code to convert our word. 3 00:00:11,750 --> 00:00:14,163 We'll start by getting the first letter. 4 00:00:16,730 --> 00:00:21,379 Word starting at zero and giving us the first character. 5 00:00:23,250 --> 00:00:26,310 Then we'll want to start a new word. 6 00:00:29,090 --> 00:00:35,210 This is going to equal the old word, starting after the first character. 7 00:00:37,180 --> 00:00:40,850 Now, we can add the first letter to the end of our new word, 8 00:00:45,250 --> 00:00:49,350 And also the string ay. 9 00:00:49,350 --> 00:00:55,220 Now, instead of $word, we want to return $newWord. 10 00:00:55,220 --> 00:00:56,460 And let's run our test again. 11 00:01:00,971 --> 00:01:03,970 Great, this time it passes. 12 00:01:03,970 --> 00:01:08,170 This doesn't cover all cases for PigLatin conversion, so 13 00:01:08,170 --> 00:01:11,510 let's add these additional features starting with our tests.