Commented out section about reward, because I realized that the calculation may be wrong and is somewhat besides the main point, I may return to it in the future