create stdClass object