Added leave/enter rules
Expanded the sample level to use leave/enter rules