An ANN for serial learning through pseudorehearsal