extract class: step to get rid of referencing n