use extend() to inherit superClass from subClass