fixed for loop in main method that counts zeroes. Changed return type of getValue() to double.