simplify s3 example