Changed reward type to double in Sample to make the Sample class more flexible