update class diagram for inheritance