Implemented stringify() to serialize to