class diagram for question 2