Constructing S3 constructor for multiClass