changed 'define' to 'class' because I was Doing It Wrong™.