Packaging the S4 code