Text this: Three-term backpropagation algorithm for classification problem