nl function

Construct a new nl object