Created back propagation class.