update usage when class inherit another class