Experiments with new types of classes in R