started github - s4, task1 safestate