<Natural name="Calculate auto premium-no style">
    <Declaration>
        <Define name="car" direction="In" />
        <Using path="FlexRule.Samples.CarInsurance.CarStyle" assembly="Car.Library.dll" />
        <Using path="System.DateTime" />
    </Declaration>
    <Glossary>
        <GlossarySource uri="Glossaries\Rating-BusinessGlossary.xml" />
    </Glossary>
    <Dsl>when &#xD;
	r1 and&#xD;
	r2 and&#xD;
	r3 and&#xD;
	r4 and&#xD;
	r5 and&#xD;
	r6 and&#xD;
	r7 and&#xD;
	r8 and&#xD;
	r9 and&#xD;
	r10 and&#xD;
	r11 and &#xD;
	r12&#xD;
end&#xD;
&#xD;
&#xD;
when r1&#xD;
then&#xD;
	car.Style = 0&#xD;
end&#xD;
&#xD;
&#xD;
when r2&#xD;
	car.Style == 'Compact'&#xD;
then&#xD;
	increase premium by (250) amount&#xD;
end&#xD;
&#xD;
&#xD;
when r3&#xD;
	car.Style == 'Sedan'&#xD;
then&#xD;
	increase premium by (400) amount&#xD;
end&#xD;
&#xD;
&#xD;
when r4&#xD;
	car.Style == 'Luxury'&#xD;
then&#xD;
	increase premium by (500) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r5&#xD;
	car is not new&#xD;
	and car.Age&lt;6&#xD;
then&#xD;
	increase premium by (400) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r6&#xD;
	car is not new&#xD;
	and car.Age&lt;5&#xD;
then&#xD;
	increase premium by (300) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r7&#xD;
	car is not new 	 and&#xD;
	car.Price is [5; 10]&#xD;
then&#xD;
	increase premium by (250) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when car is not new&#xD;
&#xD;
	is car new == false&#xD;
&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when is car new&#xD;
		(car.ModelYear == DateTime.Today.Year) or&#xD;
		(car.ModelYear == (DateTime.Today.Year+1))&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r8&#xD;
	car.UninsuredMotoristCoverage&#xD;
then&#xD;
	increase premium by (300) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r9&#xD;
	car.HasMedicalCoverage&#xD;
then&#xD;
	increase premium by (600) amount&#xD;
end&#xD;
&#xD;
&#xD;
when r10&#xD;
	car.OccupantInjuryCategory == 'ExtremelyHigh'&#xD;
then&#xD;
	increase premium by (1000) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r11&#xD;
	car.OccupantInjuryCategory == 'High'&#xD;
then&#xD;
	increase premium by (500) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when r12&#xD;
	car.TheftCategory == 'High'&#xD;
then&#xD;
	increase premium by (500) amount&#xD;
end&#xD;
&#xD;
&#xD;
&#xD;
when increase premium by {n} amount&#xD;
then&#xD;
	car.AutoPremium += n;&#xD;
end&#xD;
&#xD;
</Dsl>
</Natural>