Added resource model and controller