% --- start of displayed preamble in the book ---
input metauml
% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
Class.P("Person")()();
Class.C("Company")()();
P.e=C.w+(-50,0);
drawObjects(P,C);
draw P.e--C.w;
item.aName(iAssoc)("works for")
          (aName.s=.5[P.e,C.w]);
endfig;
end;
