UPDATE extending class and defining class