Got S3 style classes working in the code.