Removed unused function in object
Added serializable interface