add factories to class diagram