Creating a convolutional neural network