Can't run a Resnet code

in this code i ave the 2 following errors :

     -ERROR: LoadError: UndefVarError: `Resnet` not defined
     -ERROR: LoadError: UndefVarError: `get_classes` not defined

the code of my book :

using Flux
using Metalhead
using Images

#Load a pretrained model(ResNet)
model = Resnet()
imagenet_labels = Metalhead.get_classes(1000)

#Load and preprocess an image
image_path ="Beagle.jpg"
img Images.imresize(img,(224,224))
input = Metalhead.preprocess(img)
#Make a prediction
output = model(input)
#Interpret the prediction
prediction = imagenet_labels[argmax(output)]
println("Predicted Label:",prediction)

Thanks for your help.

You want a capital N in model = ResNet()

Thanks Jeff,
my model is loading with:

model = ResNet(18; pretrain = true)

but i still ave my bug:
ERROR: LoadError: UndefVarError: get_classes not defined

the original code on my book was :

imagenet_labels = Metalhead.get_classes(1_000)

if anyone wants to help me again…

get_classes is not a function from Metalhead. Maybe you meant another package?