Hebb Rule program from HW2