Example of Serializable in Java