Creating and using record types