Better way of doing it with create_resources()