State Pattern | CodeWithYash