implementation of fully connected, cnn, average pooling layers with backpropagation and data classification models