added the 'define' function

This adds the define function.