use inherits for determing and acting upon class information