class diagrams for search