Normalize functions impl
Normalize undo function
Normalize switch case main