fixing issue #21: initializing 'var' to 0.0 in method 'score'.