extract number assignments to separate class