class generator: object relations