Defining and using structures