Create an effective graphical representation of logic using Unified Modeling Language (UML) diagrams.