added an example q_learning scheme for later.