public ClockSetup() { yearState = new YearSetupState(this); monthState = new MonthSetupState(this); dayState = new DaySetupState(this); hourState = new HourSetupState(this); minuteState = new MinuteSetupState(this); finishedState = new FinishedSetupState(this); // Initial state is set to the year State = yearState; }