0.1.0
adding a serialize method to a resource to extract its data