結果 : q learning algorithm with example