Implemented domain classes such as relationships between tables