study code for structs and sigs