static Day getDay(int weekIndex) { if (weekIndex == 6) { return Day.sunday; } else { return Day(weekIndex + 2); } }