Add function to define available attributes for a given class.