split training into separate parts, feeding data and backpropagating.