Update S3.java