Transformation of Class Diagrams into Z Specifications