Tried to generate from UML, still in troubles