class diagram for proposed design