Updated trun

Updated turn to have a sample struct and added the write method for it.