In some places you used `resource`, in some you used `resource_class`