Creating a Serializer class