After increasing value of delta k in the output know (was too small, causing no learning to be done), the network successfully learned the and function