Creating a ResNet model