Neural network logic gate homework