For example , the structure of groups is a single object in universal algebra , which is called variety of groups .
Universal algebra is a related subject that studies types of algebraic structures as single objects .