Normalize teacher's show/hide algorithm