finished doing the initialisation of perceptron. testing now