Draft for Q-learning