add restruct.py
add relation