Code made with class diagram