modifying extends in class