partially implemented resource into code

partially implemented resource into code