you should wrap this line to be at last 85 character long:
````php
$questoin = new ChoiceQuestion(
    'Please select your favorite color (defaults to red)',
    array('red', 'blue', 'yellow'),
    'red'
);
````

There is also a use statement missing.

Further more, I would put this section together with the other sections talking about question types