Adding implementation of serializable