in progress of adding the learning algorithm with RV. finishing up the first stage (only current inputs)