update Mail.java class