Made objects serializable