Create 4.StatePattern.cs