updating class hierarchy