Lecture 3: perceptron and 2 exercises