How to create a custom model

I am trying to create a custom resnet model with 38 number of conv layers. how can add an additional 4 more layers to the resnet34 architecture. is there any option to create a custom model using sequential method to create a resnet from scratch and adding more layers.