Added serializable interface to type declaration