first demo with resource format, resource.php