for class.  this is my second try.