Implementing Serializable inteface and generating serial version UID.