Creating a quiz with conditional output