Please refer the following links to visit the webpage of the related assignment
Basic Implementation of CNN with MNIST and line Dataset
Basic_CNN
A little advanced tweaked implementation of CNN using MNIST and line dataset
tweaked_CNN
Visualising Intermediate Filters