extract class: now left with some ns. need to think.