Implement a resource controller