Serializer class implemented