added the 'define' function

#3  This adds the define function.