traits function

Constructor for the S4 traits object.