creating structs in code