adding a reusable serializer for the items class