LD2 - added UML diagram