Refactored the ResponseTransformer to use stdClass