Finished implementation of backpropagation and classification