add process and thread example
restruct