add factory to class diagram